// 导入请求对象
import request from '../utils/request'
// 添加封装请求
const editUserInfo = data => {
  return request({
    method: 'patch',
    url: '/v1_0/user/profile',
    data
  })
}

// 封装方法 - 上传头像
const uploadPhoto = data => {
  return request({
    method: 'patch',
    url: '/v1_0/user/photo',
    data
  })
}

// 暴露接口
export { editUserInfo, uploadPhoto }
